﻿using Anmlz.Data;
using System;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;

namespace Anmlz.Web
{
    using Anmlz.Data.Contracts;
    using Anmlz.Services;
    using Anmlz.Web.App_Start;
    using Anmlz.Web.Filters;

    public class Global : HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            WebApiInitializer.Initialize(GlobalConfiguration.Configuration);
            RouteInitializer.Initialize(GlobalConfiguration.Configuration, RouteTable.Routes);
            DependencyResolverInitializer.Initialize(GlobalConfiguration.Configuration);
            FilterInitializer.Initialize(GlobalFilters.Filters, GlobalConfiguration.Configuration.Filters);
            DbInitializer.Initialize(DependencyResolver.Current);
        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }

        public static SimpleInjector.Container Container { get; set; }
    }
}